package com.tianyang.yukuaifuzs.business.auth.contract;

import android.content.Intent;

import com.tianyang.yukuaifuzs.base.IBaseExtraView;
import com.tianyang.yukuaifuzs.base.IBasePresenter;
import com.tianyang.yukuaifuzs.business.auth.bean.AuthCompanyOutput;
import com.tianyang.yukuaifuzs.business.auth.bean.BankRegOutput;
import com.tianyang.yukuaifuzs.business.auth.bean.IdCardOutput;
import com.tianyang.yukuaifuzs.business.auth.bean.LicenseRegOutput;

import java.util.Map;

/**
 * Description：企业商户进件
 * Created by xyj on 2024/3/8
 */
public interface AuthCompanyContract {

    interface View extends IBaseExtraView<Presenter> {

        /**
         * 显示图片
         */
        void showPhotoView(String urlStr, String photoType);

        /**
         * 显示营业执照
         */
        void showLicenseRegView(LicenseRegOutput output);

        /**
         * 显示身份证
         */
        void showIdCardView(IdCardOutput output);

        /**
         * 显示银行信息
         */
        void showBankCardView(BankRegOutput output, String currentPhotoType);

        /**
         * 显示省市区
         */
        void showProvCityAreaView(String provCityName, String wheelCode, boolean isShop);

        /**
         * 回显
         */
        void showCompanyInfoView(AuthCompanyOutput output);

        /**
         * 显示经营范围
         */
        void showBusinessScopeView(String businessScope);

        /**
         * 显示下一步
         */
        void showNextStepView();
    }

    interface Presenter extends IBasePresenter {

        /**
         * 弹出拍照弹框
         */
        void showSelectImgSourceView(String currentPhotoType);

        /**
         * 拍照回调
         */
        void onActivityResult(int requestCode, int resultCode, Intent data);

        /**
         * 保存临时数据
         */
        void saveIdCertTemp(Map<String, String> map, boolean isAuth, boolean isNextStep, String posChannel);

        /**
         * 查询省接口
         */
        void queryProvince(android.view.View view, String provCityArea, boolean isShop);

        /**
         * 查询经营范围
         */
        void getBusinessScopeList(android.view.View view, String businessScope);
    }
}
